package com.potevio.simulator.entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 签到报文 0x10
 */
@Component
public class SiginMsg0x10 {
    // 版本域
    public static String versionDomain;

    // 序列号域
    public static String serialNumberDomain;

    // 命令代码
    public static String commandCode;

    // 充电桩编码
    public static String chargingPile;

    // 系统设备资产编码
    public static String assetEquipmentCode;

    // 系统软件版本
    public static String systemSoftVersion;

    // 启动次数
    public static String startNumber;

    // 存储空间容量
    public static String storageCapacity;

    // 充电桩智能终端软件已经持续运行时间
    public static String runningTime;

    // 最近一次启动时间
    public static String lastStartTime;

    // 最近一次签到时间
    public static String lastSiginTime;

    @Value("${message.sigin.version-domain}")
    public void setVersionDomain(String versionDomain) {
        SiginMsg0x10.versionDomain = versionDomain;
    }

    @Value("${message.sigin.serial-number-domain}")
    public void setSerialNumberDomain(String serialNumberDomain) {
        SiginMsg0x10.serialNumberDomain = serialNumberDomain;
    }

    @Value("${message.sigin.command-code}")
    public void setCommandCode(String commandCode) {
        SiginMsg0x10.commandCode = commandCode;
    }

    @Value("${message.sigin.charging-pile}")
    public void setChargingPile(String chargingPile) {
        SiginMsg0x10.chargingPile = chargingPile;
    }

    @Value("${message.sigin.asset-equipment-code}")
    public void setAssetEquipmentCode(String assetEquipmentCode) {
        SiginMsg0x10.assetEquipmentCode = assetEquipmentCode;
    }

    @Value("${message.sigin.sys-soft-version}")
    public void setSystemSoftVersion(String systemSoftVersion) {
        SiginMsg0x10.systemSoftVersion = systemSoftVersion;
    }

    @Value("${message.sigin.start-number}")
    public void setStartNumber(String startNumber) {
        SiginMsg0x10.startNumber = startNumber;
    }

    @Value("${message.sigin.storage-capacity}")
    public void setStorageCapacity(String storageCapacity) {
        SiginMsg0x10.storageCapacity = storageCapacity;
    }

    @Value("${message.sigin.running-time}")
    public void setRunningTime(String runningTime) {
        SiginMsg0x10.runningTime = runningTime;
    }

    @Value("${message.sigin.last-start-time}")
    public void setLastStartTime(String lastStartTime) {
        SiginMsg0x10.lastStartTime = lastStartTime;
    }

    @Value("${message.sigin.last-sigin-time}")
    public void setLastSiginTime(String lastSiginTime) {
        SiginMsg0x10.lastSiginTime = lastSiginTime;
    }

}
